package luren.king.wechatlite.ui;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import luren.king.wechatlite.R;
import luren.king.wechatlite.activity.SettingActivity;

public class MineFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_mine, container, false);

        @SuppressLint({"MissingInflatedId", "LocalSuppress"})
        LinearLayout setting = view.findViewById(R.id.setting);

        setting.setOnClickListener(v -> {
            Intent intent = new Intent();
            intent.setClass(requireContext(), SettingActivity.class);
            requireContext().startActivity(intent);
        });

        return view;
    }
}
